package com.story.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.sun.org.apache.xpath.internal.objects.XString;

import java.io.Serializable;

@TableName("category_class")
public class CategoryClass extends Model<CategoryClass> {

    private static final long serialVersionUID = 1L;
    @Override
    protected Serializable pkVal() {
        return null;
    }

    /**
     * 主键
     */
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    private String name;

    private Integer sort;

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
